'Declaration
<NotNullAttribute()> Public Overloads Shared Function FromFailed(Of T)( _ ByVal failedOperationResult As OperationResult _ ) As ValueResult(Of T)
'Usage
Dim failedOperationResult As OperationResult Dim value As ValueResult(Of T) value = ValueResult.FromFailed(Of T)(failedOperationResult)
[NotNull()] public static ValueResult<T> FromFailed<T>( OperationResult failedOperationResult )
[NotNull()] public: static ValueResult<T^>^ FromFailedgeneric<typename T> ( OperationResult^ failedOperationResult )
Parameters
- failedOperationResult
- The failed operation result.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Type Parameters
- T
Return Value
This method never returns null
(Nothing
in Visual Basic).